/*
** ioports.c for Kernel in /home/icecrime/Kernel
** 
** Made by icecrime
** Login   <icecrime@epita.fr>
** 
** Started on  Wed Oct 18 15:19:17 2006 icecrime
** Last update Wed Oct 18 15:26:02 2006 icecrime
*/

#include "system.h"

uint8		inportb(uint16 port)
{
  uint8		rv;

  asm __volatile__ ("inb %1, %0" : "=a" (rv) : "dN" (port));
  return rv;
}

void		outportb(uint8 data, uint16 port)
{
  asm __volatile__ ("outb %1, %0" : : "dN" (port), "a" (data));
}
